# critique to photo
class CreateCritiques < ActiveRecord::Migration
  def self.up
    STDERR.puts "Creating critiques table"
    create_table :critiques do |t|
      t.column :user_id,        :integer
      t.column :photo_id,       :integer
      t.column :rate,           :integer
      t.column :content,        :text
      t.column :created_at,     :datetime
      t.column :updated_at,     :datetime
    end
  end

  def self.down
    STDERR.puts "Dropping critiques table"
    drop_table :critiques
  end
end
